<?php include load_tpl('header');?>
<p id="breadcrumbs">
    <a href="/">首页</a> <b>»</b> 
    <span>属性值管理</span>
</p>

<div class="box">
  <div class="left"></div>
  <div class="right"></div>
  <div class="heading">
    <h1 style="background-image: url('./images/shipping.png');">属性值列表</h1>
	<div class="buttons"><a onclick="location='index.php?mod=attributeValue&act=add'" class="button"><span>添加</span></a></div>
  </div>
  <div class="content">
      <table class="list">
        <thead>
          <tr>
            <th width="1" style="text-align: center;"><input type="checkbox"/></th>
            <th class="left">属性组名称</th>
			<th class="left">属性值名称</th>
            <th class="right">操作</th>
          </tr>
        </thead>
        <tbody>
		<?php if($av_list){foreach($av_list as $av){?>
            <tr>
            <td style="text-align: center;"><input type="checkbox" name="bid" value="<?php if(isset($av['attribute_value_id']))echo $av['attribute_value_id'];?>" />
            </td>
            <td class="left"><?php if(isset($av['name']))echo $av['name'];?></td>
			<td class="left"><?php if(isset($av['value']))echo $av['value'];?></td>
            <td class="right">
			<a class="button" href="index.php?mod=attributeValue&act=edit&attr_id=<?php if(isset($attr_id)) echo $attr_id;?>&attr_value_id=<?php if(isset($av['attribute_value_id']))echo $av['attribute_value_id'];?>"><span>编辑</span></a>
			<a class="button"  href="index.php?mod=attributeValue&act=del&attr_id=<?php if(isset($attr_id)) echo $attr_id;?>&attr_value_id=<?php if(isset($av['attribute_value_id']))echo $av['attribute_value_id'];?>"><span>删除</span></a>
            </td>
          </tr>
		  <?php } }else{?>
		  <tr>
		  <td colspan="4">无属性!</td>
		  </tr>
		  <?php }?>
        </tbody>
      </table>
</div>

<?php include load_tpl('footer');?>
<script type="text/javascript">
</script>